package net.oschina.app.fragment.move;

import net.oschina.app.R;
import net.oschina.app.base.BaseFragment;
import net.oschina.app.base.BasePagerAdapter;
import net.oschina.app.viewpagerfragment.move.MoveHotFragment;
import net.oschina.app.viewpagerfragment.move.MoveMyFragment;
import net.oschina.app.viewpagerfragment.move.MoveNewFragment;

/**
 * Created by Vashon on 2017/1/12.
 */

public class MoveFragment extends BaseFragment {

    @Override
    public int getLayoutRes() {
        return R.layout.fragment_move;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {
        initViewPager();
    }

    private void initViewPager() {
        BasePagerAdapter adapter = new BasePagerAdapter(getChildFragmentManager(),mRoot);
        adapter.addTab(MoveNewFragment.class,"最新动弹");
        adapter.addTab(MoveHotFragment.class,"热门动弹");
        adapter.addTab(MoveMyFragment.class,"我的动弹");
    }
}
